Publisher B
Shared storage - Creative rotation demo
Demo control
Description
An advertiser may want to show different ads of the same campaign to the user to increase effectiveness of the ads.
In this demo, the creative can be rotated with different strategies. In sequential rotation, creatives A, B and C are shown one after another. In even distribution, the creative is selected at random where each creative has an equal chance of being chosen. In weighted distribution, some creatives can be weighted to be chosen more often than another creative.
Code
- Iframe logic (embedded into the publisher page)
- Worklet (loaded and executed by the iframe logic)
Shared Storage API is not enabled in your browser. Follow the instructions, and enable the the Privacy Sandbox Ads APIs experiment flag at chrome://flags/#privacy-sandbox-ads-apis with Chrome 104.0.5086.0 and above to test this Shared Storage API demo.